#pragma once
#include "utility\Gets.h"
#include "utility\defs.h"
#include <d3d9.h>
#include <d3dx9.h>
#include <map>
#include <string>
using namespace std;


typedef LPDIRECT3DTEXTURE9 TEX;
class cTextureMgr
{
public:
	void PushTex(WCHAR* texpath,string texKey);
	TEX GetTex(string texname);
	void EraseTex(string texname);
	void Release();
private:
	map<string,TEX> mapTexs;
	LPDIRECT3DDEVICE9 m_pDevice9;
};